package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RunRecordsMapper;
import com.ruoyi.system.domain.RunRecords;
import com.ruoyi.system.service.IRunRecordsService;

/**
 * 运行记录Service业务层处理
 * 
 * @author yaozh
 * @date 2024-02-20
 */
@Service
public class RunRecordsServiceImpl implements IRunRecordsService 
{
    @Autowired
    private RunRecordsMapper runRecordsMapper;

    /**
     * 查询运行记录
     * 
     * @param id 运行记录主键
     * @return 运行记录
     */
    @Override
    public RunRecords selectRunRecordsById(Long id,String dbName)
    {
        return runRecordsMapper.selectRunRecordsById(id,dbName);
    }

    /**
     * 查询运行记录列表
     * 
     * @param runRecords 运行记录
     * @return 运行记录
     */
    @Override
    public List<RunRecords> selectRunRecordsList(RunRecords runRecords,String dbName)
    {
        return runRecordsMapper.selectRunRecordsList(runRecords,dbName);
    }

    /**
     * 新增运行记录
     * 
     * @param runRecords 运行记录
     * @return 结果
     */
    @Override
    public int insertRunRecords(RunRecords runRecords,String dbName)
    {
        return runRecordsMapper.insertRunRecords(runRecords,dbName);
    }

    /**
     * 修改运行记录
     * 
     * @param runRecords 运行记录
     * @return 结果
     */
    @Override
    public int updateRunRecords(RunRecords runRecords,String dbName)
    {
        return runRecordsMapper.updateRunRecords(runRecords,dbName);
    }

    /**
     * 批量删除运行记录
     * 
     * @param ids 需要删除的运行记录主键
     * @return 结果
     */
    @Override
    public int deleteRunRecordsByIds(Long[] ids,String dbName)
    {
        return runRecordsMapper.deleteRunRecordsByIds(ids,dbName);
    }

    /**
     * 删除运行记录信息
     * 
     * @param id 运行记录主键
     * @return 结果
     */
    @Override
    public int deleteRunRecordsById(Long id,String dbName)
    {
        return runRecordsMapper.deleteRunRecordsById(id,dbName);
    }
}
